const _location = window.location
const __location = new Proxy({}, {
    set: (_, p, v) => {
        if (p === 'href') debugger
        _location.href = v
    }
})
const _window=window
window=new Proxy({}, {
    get:(_,p)=>{
        return p==='location'?__location:_window[p]
    }
})

window.onhashchange = function() {
    console.log("Location hash changed:", location.hash);
    // 在这里处理你的逻辑，比如更新图表等
    debugger
  };

  (()=>{
    console.log(2)
    debugger
    console.log(3)
  })()